MailPoet\Subscribers\ImportExport\Import\Import B

Total Complexity 90
Dependencies 20
Dependents 1
Total lines 657
Lines of code 493
Logical lines of code 258
Comment lines 58
Methods 21
Properties 19

Methods 21

Method Rating Maintainability Complexity Lines of code
process()
A
40 13 63
validateSubscribersData()
A
44 13 45
createOrUpdateSubscribers()
A
43 8 51
createOrUpdateCustomFields()
A
44 8 46
validateDateTimeAttemptCustomFormat()
S
49 6 33
splitSubscribersData()
S
49 5 34
addTagsToSubscribers()
S
50 5 32
validateDateTime()
S
57 4 17
setSubscriptionStatusToDefault()
S
59 4 15
addSubscribersToSegments()
S
54 3 24
__construct()
S
48 2 34
validateImportData()
S
56 3 18
deleteExistingTrashedSubscribers()
S
60 3 14
addField()
S
63 2 11
getSubscribersFields()
S
66 2 9
getCustomSubscribersFields()
S
67 2 9
addMissingRequiredFields()
S
70 2 6
transformSubscribersData()
S
68 2 7
setSource()
S
64 1 10
setLinkToken()
S
64 1 10
synchronizeWPUsers()
S
72 1 5